package com.party.api.dto.wechat.requst;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * 微信菜单按钮请求参数
 * Created by wei.li
 *
 * @date 2017/8/28 0028
 * @time 11:26
 */
public class MenuButtonRequest {

    //菜单标题
    private String name;

    //菜单的响应动作类型
    private String type;

    //菜单KEY值，用于消息接口推送
    private String key;

    //网页链接
    private String url;

    //media_id类型和view_limited类型必须
    @JSONField(name = "media_id")
    private String mediaId;

    //小程序的appid
    private String appid;

    //小程序的页面路径
    private String pagepath;

    //子菜单
    @JSONField(name = "sub_button")
    private List<MenuButtonRequest> buttonRequestList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getPagepath() {
        return pagepath;
    }

    public void setPagepath(String pagepath) {
        this.pagepath = pagepath;
    }

    public List<MenuButtonRequest> getButtonRequestList() {
        return buttonRequestList;
    }

    public void setButtonRequestList(List<MenuButtonRequest> buttonRequestList) {
        this.buttonRequestList = buttonRequestList;
    }
}
